const Mock = require('mockjs')

const data = Mock.mock({
    "banner|6" : ["@image(375x250, @color)"]
})

const lis = Mock.mock({
    "list|10" : [
        {
            "title" : "@ctitle(4)",
            "list|15-20" : [
                {
                    "id" : "@id",
                    "name" : "@cname",
                    "img" : "@image(100x100, @color)",
                    "banner|4" : ["@image(250x180, @color)"],
                    "text" : "@csentence",
                    "desc" : '@ctitle(12)',
                    "price|20-50" : 20,
                    "count" : 0,
                    "checked" : true
                }
            ]
        }
    ]
})

module.exports = { 
    banner : data.banner,
    list : lis.list
}